package com.business.corp;

import com.common.PicTypeConstants;
import com.frame.struts.BaseBean;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import com.utils.CommUtil;
import javax.servlet.http.HttpServletResponse;
import com.frame.struts.ActionContext;
import java.io.IOException;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2006
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author not attributable
 * @version 1.0
 */
public class CorpOtherForm extends BaseBean
{
    public CorpOtherForm()
    {
    }

    CorpOtherEntity corpOther = new CorpOtherEntity();

    public String addCorpDesc()
    {
        HttpServletRequest request = ActionContext.getActionContext()
                                                  .getRequest();
        HttpServletResponse response = ActionContext.getActionContext()
                                                    .getResponse();
        CorpFactory factory = new CorpFactory();
        String qyid = (String) request.getSession()
                                      .getAttribute( "session_qyid" );
        corpOther.setQyid( qyid );
        corpOther.setOptrid( CommUtil.getUserId( request ) );
        if( factory.addCorpDesc( corpOther ) )
        {
            try
            {
                response.sendRedirect( request.getContextPath()+"/gudong/addcapstructure.jsp" );
            }
            catch( IOException ex1 )
            {
            }
           

        }
        return null;
    }

    public String editCorpDesc()
    {
        HttpServletRequest request = ActionContext.getActionContext()
                                                  .getRequest();
        HttpServletResponse response = ActionContext.getActionContext()
                                                    .getResponse();
        CorpFactory factory = new CorpFactory();
        String qyid = (String) request.getSession()
                                      .getAttribute( "session_qyid" );
        corpOther.setQyid( qyid );
        corpOther.setOptrid( CommUtil.getUserId( request ) );
        if( factory.addCorpDesc( corpOther ) )
        {
            return "success";
        }
        return "failed";
    }

    public String addZhpj()
    {
        HttpServletRequest request = ActionContext.getActionContext()
                                                  .getRequest();
        HttpServletResponse response = ActionContext.getActionContext()
                                                    .getResponse();
        CorpFactory factory = new CorpFactory();
        if( factory.addZhpj( request ) )
        {
            return "success";
        }
        return "failed";
    }

    public String editZhpj()
    {
        HttpServletRequest request = ActionContext.getActionContext()
                                                  .getRequest();
        HttpServletResponse response = ActionContext.getActionContext()
                                                    .getResponse();
        CorpFactory factory = new CorpFactory();
        String qyid = (String) request.getSession()
                                      .getAttribute( "session_qyid" );
        corpOther.setQyid( qyid );
        corpOther.setOptrid( CommUtil.getUserId( request ) );
        if( factory.addCorpDesc( corpOther ) )
        {
            return "success";
        }
        return "failed";
    }

    public String getGlqyyx()
    {
        return corpOther.getGlqyyx();
    }

    public void setGlqyyx( String glqyyx )
    {
        corpOther.setGlqyyx( glqyyx );
    }

    public String getGlzjyjcjz()
    {
        return corpOther.getGlzjyjcjz();
    }

    public void setGlzjyjcjz( String glzjyjcjz )
    {
        corpOther.setGlzjyjcjz( glzjyjcjz );
    }

    public String getGsjj()
    {
        return corpOther.getGsjj();
    }

    public void setGsjj( String gsjj )
    {
        corpOther.setGsjj( gsjj );
    }

    public String getJzdsfx()
    {
        return corpOther.getJzdsfx();
    }

    public void setJzdsfx( String jzdsfx )
    {
        corpOther.setJzdsfx( jzdsfx );
    }

    public Date getOptdate()
    {
        return corpOther.getOptdate();
    }

    public void setOptdate( Date optdate )
    {
        corpOther.setOptdate( optdate );
    }

    public String getOptrid()
    {
        return corpOther.getOptrid();
    }

    public void setOptrid( String optrid )
    {
        corpOther.setOptrid( optrid );
    }

    public String getQyid()
    {
        return corpOther.getQyid();
    }

    public void setQyid( String qyid )
    {
        corpOther.setQyid( qyid );
    }

    public String getQyjyglqk()
    {
        return corpOther.getQyjyglqk();
    }

    public void setQyjyglqk( String qyjyglqk )
    {
        corpOther.setQyjyglqk( qyjyglqk );
    }

    public String getRecstate()
    {
        return corpOther.getRecstate();
    }

    public void setRecstate( String recstate )
    {
        corpOther.setRecstate( recstate );
    }

    public String getRemark()
    {
        return corpOther.getRemark();
    }

    public void setRemark( String remark )
    {
        corpOther.setRemark( remark );
    }

    public String getPicURL()
    {
        return corpOther.getPicURL();
    }

    public void setPicURL( String picURL )
    {
        corpOther.setPicURL( picURL );
    }
}
